package com.liusaidh.domain;

import java.util.Arrays;

public class Blog {
    private Integer id;
    private Integer createBy;
    private String text;
    private Integer like;
    private Integer amount;
    private Integer transmit;
    //0代表没删除，1代表被删除
    private Integer delete;
    private String publishedDate;
    //0代表未审核  1代表经过审核  2代表在用户的草稿箱
    private Integer state;
    private Integer[] label;
    private Integer[] type;
    private Integer[] pictureUrl;
    private Integer[] videoUrl;

    public Blog() {
    }

    public Blog(Integer id, Integer createBy, String text, Integer like, Integer amount, Integer transmit, Integer delete, String publishedDate, Integer state, Integer[] label, Integer[] type, Integer[] pictureUrl, Integer[] videoUrl) {
        this.id = id;
        this.createBy = createBy;
        this.text = text;
        this.like = like;
        this.amount = amount;
        this.transmit = transmit;
        this.delete = delete;
        this.publishedDate = publishedDate;
        this.state = state;
        this.label = label;
        this.type = type;
        this.pictureUrl = pictureUrl;
        this.videoUrl = videoUrl;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "id=" + id +
                ", createBy=" + createBy +
                ", text='" + text + '\'' +
                ", like=" + like +
                ", amount=" + amount +
                ", transmit=" + transmit +
                ", delete=" + delete +
                ", publishedDate='" + publishedDate + '\'' +
                ", state=" + state +
                ", label=" + Arrays.toString(label) +
                ", type=" + Arrays.toString(type) +
                ", pictureUrl=" + Arrays.toString(pictureUrl) +
                ", videoUrl=" + Arrays.toString(videoUrl) +
                '}';
    }

    public Blog(Integer id, Integer createBy, String text, Integer like, Integer amount, Integer transmit, Integer delete, String publishedDate, Integer state, Integer[] pictureUrl, Integer[] videoUrl) {
        this.id = id;
        this.createBy = createBy;
        this.text = text;
        this.like = like;
        this.amount = amount;
        this.transmit = transmit;
        this.delete = delete;
        this.publishedDate = publishedDate;
        this.state = state;
        this.pictureUrl = pictureUrl;
        this.videoUrl = videoUrl;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Integer getLike() {
        return like;
    }

    public void setLike(Integer like) {
        this.like = like;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getTransmit() {
        return transmit;
    }

    public void setTransmit(Integer transmit) {
        this.transmit = transmit;
    }

    public Integer getDelete() {
        return delete;
    }

    public void setDelete(Integer delete) {
        this.delete = delete;
    }

    public String getPublishedDate() {
        return publishedDate;
    }

    public void setPublishedDate(String publishedDate) {
        this.publishedDate = publishedDate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer[] getLabel() {
        return label;
    }

    public void setLabel(Integer[] label) {
        this.label = label;
    }

    public Integer[] getType() {
        return type;
    }

    public void setType(Integer[] type) {
        this.type = type;
    }

    public Integer[] getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(Integer[] pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    public Integer[] getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(Integer[] videoUrl) {
        this.videoUrl = videoUrl;
    }
}
